package com.li.blog.service;

import com.li.blog.dao.pojo.SysUser;
import com.li.blog.vo.Result;
import com.li.blog.vo.UserVo;

public interface SysUserService {

  SysUser findUserById(long id);

  SysUser findUser(String account, String password);

  /**
   * 通过token查询用户信息
   *
   * @param token
   * @return
   */
  Result findUserBytoken(String token);

  SysUser findUserByAccount(String account);

  void save(SysUser sysUser);

  UserVo findUserVoById(Long authorId);
}
